This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2012 Wes Lanning, http://codingcreation.com | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity | |
extends BaseActivity | |
with LoaderCallbacks[SharedPreferences] { | |
private var dbOnly : Boolean = false | |
private var enableDebug : Boolean = false | |
private var filteredSignals: Array[String] = null | |
private var fudgeSignal : Boolean = true | |
private var preferences : SharedPreferences = null | |
private var sigInfoIds : TypedArray = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android_scala | |
import android.app.Activity | |
import android.os.Bundle | |
import android.view.View | |
import android.view.View.OnClickListener | |
import android.widget.{Button, Toast} | |
import com.example.android_scala.MyActivity._ | |
class MyActivity extends Activity { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Opera Preferences version 2.1 | |
; Do not edit this file while Opera is running | |
; This file is stored in UTF-8 encoding | |
; This file is found under c:/users/<username>/appdata/roaming/opera/opera/override.ini | |
; ~/.opera/ on linux | |
; or wherever you installed opera (if using the portible version) | |
; Firefox version was set to version somewhat farther in the future to avoid it not working again anytime soon (version 51) | |
; add the following lines if they do not already exist to the file: | |
[Overrides] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## DEFINITIONS ########## | |
definitions: | |
widgets: | |
DoNotShowAgainCheckBox: &DoNotShowAgainCheckBox | |
type: Checkbox | |
name: checkbox_Default | |
string: S_DO_NOT_SHOW_DIALOG_AGAIN | |
buttons: | |
# Ok button, typically used in a button strip using *OkButton |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- type: Dialog | |
name: Startup Dialog | |
title: D_STARTUP_TITLE | |
content: | |
type: StackLayout | |
name: MainView | |
elements: | |
- type: StackLayout # pending proper solution, see DSK-343111 | |
orientation: horizontal | |
bottom-margin: 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Helpers.Storage | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- old xml --> | |
<EditText | |
android:id="@+id/embedded_text_editor" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1.0" | |
android:autoText="true" | |
android:capitalize="sentences" | |
android:background="#00ffffff" | |
android:padding="12dp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// original code: | |
private void initializeIme() { | |
if (TextSecurePreferences.isEnterImeKeyEnabled(this)) { | |
composeText.setInputType(composeText.getInputType() & (~InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE)); | |
} else { | |
composeText.setInputType(composeText.getInputType() | (InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE)); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Helpers.Storage; | |
using UnityEngine; | |
namespace Test | |
{ |