Skip to content

Instantly share code, notes, and snippets.

View kevinabrioux's full-sized avatar
🎯
Focusing

kevinabrioux

🎯
Focusing
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorAccent" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/ic_launcher" />
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorAccent" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/ic_launcher" />
<style name="SplashScreenTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/drawable_splashscreen</item>
</style>
<activity
android:name=".activity.SplashScreenActivity"
android:theme="@style/SplashScreenTheme"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
func hideSeparator(){
self.separatorInset = UIEdgeInsetsMake(0.0, 0.0, 0.0, self.bounds.size.width)
}
func hideEmptyCells(){
self.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 0))
}
static func getCell(_ pTableView : UITableView, pXIB : String, pIdentifier : String) -> UITableViewCell{
pTableView.register(UINib(nibName: pXIB, bundle: nil), forCellReuseIdentifier: pIdentifier)
let cell = pTableView.dequeueReusableCell(withIdentifier: pIdentifier)!
cell.selectionStyle = UITableViewCellSelectionStyle.none
cell.frame.size.width = pTableView.frame.width
return cell
}
static func getCell(pCellType : NSObject, pTableView : UITableView) -> UITableViewCell{
let type = String(describing: type(of: pCellType))
import Intents
//Project's level gradle
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
//Application level's gradle
dependencies {
...