Commit 7416e886 authored by Oscar Megia Lopez's avatar Oscar Megia Lopez
Browse files

Updated about menu option. Now is an activity.

Now looks better.
Updated text in both languages to see them more clear.
parent f9ac0092
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -19,6 +19,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AcercaDeActivity"
android:label="Acerca de ..."
android:theme="@style/Theme.AppCompat.Light.Dialog"/>
</application>
</manifest>
\ No newline at end of file
package com.oml.recordtimedroid;
import android.app.Activity;
import android.os.Bundle;
public class AcercaDeActivity extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.acerca_de);
}
}
package com.oml.recordtimedroid;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
......@@ -94,29 +95,8 @@ public class ScrollingActivity extends AppCompatActivity {
//noinspection SimplifiableIfStatement
if (id == R.id.action_acerca_de) {
// inflate the layout of the popup window
LayoutInflater inflater = (LayoutInflater)
getSystemService(LAYOUT_INFLATER_SERVICE);
View popupView = inflater.inflate(R.layout.acerca_de, null);
// create the popup window
int width = LinearLayout.LayoutParams.WRAP_CONTENT;
int height = LinearLayout.LayoutParams.WRAP_CONTENT;
boolean focusable = true; // lets taps outside the popup also dismiss it
final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);
// show the popup window
// which view you pass in doesn't matter, it is only used for the window tolken
popupWindow.showAtLocation(findViewById(android.R.id.content), Gravity.CENTER, 0, 0);
// dismiss the popup window when touched
popupView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
popupWindow.dismiss();
return true;
}
});
Intent i = new Intent(this, AcercaDeActivity.class);
startActivity(i);
return true;
}
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/colorPrimary">
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="false"
android:layout_margin="30dp"
android:textSize="15sp"
android:textColor="@android:color/white"
android:text="@string/mensaje_acerca_de"/>
</RelativeLayout>
\ No newline at end of file
android:padding="@dimen/text_margin"
android:text="@string/mensaje_acerca_de">
</TextView>
\ No newline at end of file
......@@ -5,15 +5,19 @@
<string name="action_acerca_de">Acerca de</string>
<string name="dias">días</string>
<string name="mensaje_acerca_de">
"App v0.1beta\n"
"desarrollada por Oscar Megía López\n"
"Desarrollada por Oscar Megía López\n\n"
"versión 0.1beta\n"
"bajo la licencia GPLv3\n"
"https://www.gnu.org/licenses/gpl-3.0.html\n"
"https://gitlab.com/Oscar65/RecordTimeDroid\n"
"Si quieres hacer una donación\n"
"este es mi código IBAN:\n"
"ES17 1465 0100 95 1709864215\n"
"También puedes donar bitcoins\n"
"https://www.gnu.org/licenses/gpl-3.0.html\n\n"
"Código fuente:\n"
"https://gitlab.com/Oscar65/RecordTimeDroid\n\n"
"Puedes hacer una donación en:\n"
"ES17 1465 0100 95 1709864215\n\n"
"También puedes donar bitcoins en mi cartera:\n"
"bc1qrldk9a9w8evj7p96aekefng36j6g9hv4xnsn3t"
</string>
</resources>
\ No newline at end of file
......@@ -4,15 +4,19 @@
<string name="action_acerca_de">About</string>
<string name="dias">days</string>
<string name="mensaje_acerca_de">
"App v0.1beta\n"
"developed by Oscar Megía López\n"
"Developed by Oscar Megía López\n\n"
"version 0.1beta\n"
"under license GPLv3\n"
"https://www.gnu.org/licenses/gpl-3.0.html\n"
"https://gitlab.com/Oscar65/RecordTimeDroid\n"
"If you want to make a donation\n"
"this is my IBAN code:\n"
"ES17 1465 0100 95 1709864215\n"
"Also you can donate bitcoins\n"
"https://www.gnu.org/licenses/gpl-3.0.html\n\n"
"Source code:\n"
"https://gitlab.com/Oscar65/RecordTimeDroid\n\n"
"If you want to make a donation:\n"
"ES17 1465 0100 95 1709864215\n\n"
"Also you can donate bitcoins in my wallet:\n"
"bc1qrldk9a9w8evj7p96aekefng36j6g9hv4xnsn3t"
</string>
</resources>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment