Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AboutFragmentContributingTab.java « about « ui « deck « nextcloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61615810260614178b7de6e81a4450217b80a251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package it.niedermann.nextcloud.deck.ui.about;

import android.content.res.Resources;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import it.niedermann.nextcloud.deck.R;
import it.niedermann.nextcloud.deck.util.LinkUtil;

public class AboutFragmentContributingTab extends Fragment {

    @BindView(R.id.about_source)
    TextView aboutSource;
    @BindView(R.id.about_issues)
    TextView aboutIssues;
    @BindView(R.id.about_translate)
    TextView aboutTranslate;

    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_about_contribution_tab, container, false);
        Resources resources = v.getResources();
        ButterKnife.bind(this, v);
        LinkUtil.setHtml(aboutSource,
                resources.getString(
                        R.string.about_source,
                        LinkUtil.makeLink(resources, R.string.url_source, R.string.url_source)
                ));
        LinkUtil.setHtml(aboutIssues,
                resources.getString(
                        R.string.about_issues,
                        LinkUtil.makeLink(resources, R.string.url_issues, R.string.url_issues)
                ));
        LinkUtil.setHtml(aboutTranslate,
                resources.getString(
                        R.string.about_translate,
                        LinkUtil.makeLink(resources, R.string.url_translations, R.string.url_translations)
                ));
        return v;
    }
}