2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 11:19:59 +01:00

Add Ok button to about dialog

This commit is contained in:
mittorn 2017-08-08 13:27:53 +07:00
parent 00ff0ced07
commit a62975fe1f
2 changed files with 13 additions and 0 deletions

View File

@ -89,6 +89,12 @@
android:singleLine="false"
android:id="@+id/textView2"
android:layout_weight="0.58" />
<Button
android:id="@+id/button_about_ok"
android:text="Ok"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
/>
</LinearLayout>
</ScrollView>

View File

@ -260,6 +260,13 @@ public class LauncherActivity extends Activity {
dialog.show();
TextView tView6 = (TextView) dialog.findViewById(R.id.textView6);
tView6.setMovementMethod(LinkMovementMethod.getInstance());
((Button)dialog.findViewById( R.id.button_about_ok )).setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
dialog.cancel();
}
});
}
});
}