add Gson license

This commit is contained in:
tibbi 2016-08-14 14:04:15 +02:00
parent 1b17e70fcb
commit 22a207f7cf
3 changed files with 21 additions and 0 deletions

View File

@ -14,5 +14,9 @@ class LicenseActivity : SimpleActivity() {
license_kotlin_title.setOnClickListener {
startActivity(viewIntent(getString(R.string.kotlin_url)))
}
license_gson_title.setOnClickListener {
startActivity(viewIntent(getString(R.string.gson_url)))
}
}
}

View File

@ -32,5 +32,19 @@
android:layout_height="wrap_content"
android:text="@string/kotlin_text"/>
<TextView
android:id="@+id/license_gson_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/activity_margin"
android:text="@string/gson_title"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/license_gson_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/gson_text"/>
</LinearLayout>
</ScrollView>

View File

@ -22,4 +22,7 @@
<string name="kotlin_title"><u>Kotlin (programming language)</u></string>
<string name="kotlin_text" translatable="false">Copyright 2010 - 2016 JetBrains s.r.o.\n\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.</string>
<string name="kotlin_url" translatable="false">https://github.com/JetBrains/kotlin</string>
<string name="gson_title"><u>Gson (de/serialization library)</u></string>
<string name="gson_text" translatable="false">Copyright 2008 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.</string>
<string name="gson_url" translatable="false">https://github.com/google/gson</string>
</resources>