References to Trunk
This commit is contained in:
parent
dfccf29f85
commit
df6a5831d9
|
@ -100,6 +100,7 @@ public class AboutActivity extends BaseActivity implements OnRetrieveRemoteAccou
|
||||||
Button about_code = findViewById(R.id.about_code);
|
Button about_code = findViewById(R.id.about_code);
|
||||||
Button about_license = findViewById(R.id.about_license);
|
Button about_license = findViewById(R.id.about_license);
|
||||||
Button about_thekinrar = findViewById(R.id.about_thekinrar);
|
Button about_thekinrar = findViewById(R.id.about_thekinrar);
|
||||||
|
Button about_trunk = findViewById(R.id.about_trunk);
|
||||||
|
|
||||||
about_code.setOnClickListener(new View.OnClickListener() {
|
about_code.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -117,6 +118,14 @@ public class AboutActivity extends BaseActivity implements OnRetrieveRemoteAccou
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
about_trunk.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://communitywiki.org/trunk"));
|
||||||
|
startActivity(browserIntent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
about_license.setOnClickListener(new View.OnClickListener() {
|
about_license.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -167,6 +176,7 @@ public class AboutActivity extends BaseActivity implements OnRetrieveRemoteAccou
|
||||||
if( theme == Helper.THEME_LIGHT) {
|
if( theme == Helper.THEME_LIGHT) {
|
||||||
about_code.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
about_code.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
about_thekinrar.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
about_thekinrar.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
|
about_trunk.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
about_translation.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
about_translation.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
about_license.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
about_license.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
about_support.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
about_support.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||||
|
|
|
@ -251,6 +251,31 @@
|
||||||
android:text="@string/about_thekinrar_action"/>
|
android:text="@string/about_thekinrar_action"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- About Trunk's API -->
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="20dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
<TextView
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:clickable="true"
|
||||||
|
android:layout_width="200dp"
|
||||||
|
android:text="@string/about_trunk"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:focusable="true" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/about_trunk"
|
||||||
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
||||||
|
android:layout_width="165dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/about_trunk_action"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- About translation -->
|
<!-- About translation -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
|
|
@ -246,6 +246,32 @@
|
||||||
android:text="@string/about_thekinrar_action"/>
|
android:text="@string/about_thekinrar_action"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- About Trunk's API -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="5dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/about_trunk"
|
||||||
|
android:textSize="16sp"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/about_trunk"
|
||||||
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="3"
|
||||||
|
android:text="@string/about_trunk_action"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- About translation -->
|
<!-- About translation -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -597,6 +597,8 @@
|
||||||
<string name="adding_account_list_trunk">Adding accounts to the list</string>
|
<string name="adding_account_list_trunk">Adding accounts to the list</string>
|
||||||
<string name="action_list_add">You have not created a list yet. Click on the \"+\" button to add a new one.</string>
|
<string name="action_list_add">You have not created a list yet. Click on the \"+\" button to add a new one.</string>
|
||||||
<string name="action_remote_instance_add">You don\'t follow any remote instances. Click on the \"+\" button to add a new one.</string>
|
<string name="action_remote_instance_add">You don\'t follow any remote instances. Click on the \"+\" button to add a new one.</string>
|
||||||
|
<string name="about_trunk">Who to follow</string>
|
||||||
|
<string name="about_trunk_action">Trunk API</string>
|
||||||
|
|
||||||
|
|
||||||
<string-array translatable="false" name="proxy_type_choice">
|
<string-array translatable="false" name="proxy_type_choice">
|
||||||
|
|
Loading…
Reference in New Issue